xsm/flask: Improve error reporting for ocontexts
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 2 Feb 2012 15:19:24 +0000 (15:19 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 2 Feb 2012 15:19:24 +0000 (15:19 +0000)
commitf95f7eb4fa1afb3d97f8870dc1768add0ebd9995
tree86d7830b23e8be5fd4473fc37991634f3fff37b1
parentdfc926ceb79d33d2742fca7e8d872348d940dea3
xsm/flask: Improve error reporting for ocontexts

Instead of returning -EINVAL for all errors, return -EEXIST if adding
an entry that overlaps with an existing entry, and -ENOENT if
attempting to remove an entry that does not exist. Adding an ocontext
that already exists with the same SID is no longer an error.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Keir Fraser <keir@xen.org>
xen/xsm/flask/ss/services.c